# Copyright [2011] [Ilya Rudakov]
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from django.conf.urls.defaults import *
import settings

urlpatterns = patterns('',
    # Feed Manager App
    (r'^index$', 'job_manager.views.index'),
    (r'^upload_feed$', 'job_manager.views.upload_feed'),
    (r'^create_feed_group$', 'job_manager.views.create_feed_group'),
    (r'^delete_job_group/(?P<job_group_id>\d+)$', 'job_manager.views.delete_job_group'),
    (r'^feed_logs/(?P<feed_id>\d+)$', 'job_manager.log_views.feed_logs'),
    (r'^history/(?P<job_id>\d+)$', 'job_manager.history_views.history'),

    # Ajax
    (r'^sample_ajax$', 'job_manager.views.sample_ajax'),
    (r'^start_feed$', 'job_manager.views.start_feed'),
    (r'^interrupt_feed$', 'job_manager.views.interrupt_feed'),
    (r'^get_feed_states$', 'job_manager.views.get_feed_states'),
    (r'^delete_feed$', 'job_manager.views.delete_feed'),
    (r'^change_group$', 'job_manager.views.change_group'),
    (r'^get_logs$', 'job_manager.log_views.get_logs'),
    (r'^update_name', 'job_manager.views.update_job_name'),
    (r'^update_description$', 'job_manager.views.update_job_description'),
    (r'^update_group_name', 'job_manager.views.update_job_group_name'),

    # Static resources
#    (r'^static/(?P<path>.*)$', 'django.views.static.serve',
#            {'document_root': settings.STATIC_DOC_ROOT}),
#    (r'^images/(?P<path>.*)$', 'django.views.static.serve',
#            {'document_root': settings.IMAGES_ROOT}),
)